package cn.edu.njpi;

/**
 * @author 朱宗辉
 * @version V1.0
 * @Package cn.edu.njpi
 * @date 2022/5/10 8:53 PM
 */
public class Test01 {
    public static class int1 {
        int i;
    }

    public static void main(String[] args) {
        int1 int1 = new int1();
        int1.i = 4;
        test01(int1);
        System.out.println("i = " + int1.i);

        int[] j = {1, 3};
        test02(j);
        for (int i1 : j) {
            System.out.println("i1 = " + i1);
        }
    }

    public static void test01(int1 i) {
        i.i = 5;
    }

    public static void test02(int[] i) {
        i[0] = 2;
    }
}
